package com.cx.dbtablelist;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;

public class ProjectConfig {
	private static Logger logger = Logger.getLogger(ProjectConfig.class.getName());
	private static Properties properties;
	static{
		//加载配置I文件
		properties = new Properties();
		try {
			InputStream fileInputStream = ProjectConfig.class.getResourceAsStream("config.properties");
			properties.load(fileInputStream);
		} catch (IOException e) {
			logger.log(Level.WARNING, e.getMessage());
		}
	}
	
	public static String get(String key){
		return properties.getProperty(key);
	}
}
